#ifndef SerialUtil_H
#define SerialUtil_H
#include <QObject>
#include "../../head/mBPSK_Demodulator/BPSK_Demodulator.h"
#include <QSerialPort>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE


class SerialUtil : public QObject
{
    Q_OBJECT
public:
    explicit SerialUtil(QObject *parent = nullptr);
    bool serial_Connect_State = false;
    int find_start_lable = 0;
    QSerialPort *serialPort;
    FIFO_Receiver fifoReceiver1;

    void resetParam();
public slots:
    QString connectSerail();

protected:
    void run();

signals:
    void sendToDemoudle();
private:    

};

#endif // SerialUtil_H
